package sorting;

public abstract class Sorting {

    protected final int LENGTH = 10;
    
    private int[] datas;
    
    public Sorting() {
        datas = new int[LENGTH];
    }
    
    public Sorting(int[] datas) {
        this.datas = datas;
    }
    
    public abstract void sort();
    
    public void display() {
        for (int i = 0; i < datas.length; i++) {
            System.out.print(datas[i] + " ");
        }
        System.out.println();
    }
}
